﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:SampleWpfApplication">
    
    <Style x:Key="textBoxStyle" TargetType="TextBox">
        <Style.Triggers>
            <Trigger Property="Text" Value="Sample">
                <Setter Property="Background" Value="AliceBlue"/>
            </Trigger>
        </Style.Triggers>
        <Setter Property="BorderThickness" Value="3"/>
        <Setter Property="BorderBrush" Value="Aquamarine"/>
    </Style>
        
    <DataTemplate DataType="{x:Type local:Person}">
        <Border>
            <StackPanel Orientation="Vertical">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="FirstName"/>
                    <TextBox Text="{Binding FirstName}"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="LastName"/>
                    <TextBox Text="{Binding LastName}"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Marital Status"/>
                    <TextBox Text="{Binding Status}"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="Birthday"/>
                    <TextBox Text="{Binding Birthday}"/>
                </StackPanel>
            </StackPanel>
        </Border>
    </DataTemplate>
</ResourceDictionary>